import { Component, OnInit } from '@angular/core';
import { ModelAttribute } from 'src/app/domain/sparrow';
import { ModelAttributeService } from 'src/app/service/model-attribute.service';


interface ItemData {
  name: string;
  age: number;
  address: string;
}


@Component({
  selector: 'app-model-attribute',
  templateUrl: './model-attribute.component.html',
  styleUrls: ['./model-attribute.component.css']
})
export class ModelAttributeComponent implements OnInit {

  listOfData: ModelAttribute[] = [];


  constructor(private modelAttributeService: ModelAttributeService) { }

  ngOnInit(): void {
   this.modelAttributeService.list().subscribe(res=>{
    this.listOfData = res.content;
   })
    
  }
}
